package com.jingyanzi.member.api;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.jingyanzi.member.domain.EmployeeDO;



@FeignClient("privilege-service")
@RestController
@RequestMapping("/api")
public interface EmployeeClientAPI {

	@RequestMapping("/employee/{id}")
	public EmployeeDO get(@PathVariable(value = "id") Integer id);
	
	@GetMapping("/employees/{realName}/{code}/{jobsId}")
	public List<EmployeeDO> query(@PathVariable(value = "realName") String realName,
			@PathVariable(value = "code") String code, @PathVariable(value = "jobsId")  Integer jobsId);
	
	
}
